package com.yonyou.lxp.xutils3test.ui;

import android.content.Context;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import org.xutils.x;

/**
 * Created by liuxiaopeng on 16/1/31.
 */
public abstract class BaseActivity extends AppCompatActivity implements View.OnClickListener {

    public Context mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        mContext = this;
    }

    @Override
    public void onClick(View v) {
        onMyClick(v);
    }


    public abstract void onMyClick(View v);
}
